<template>
  <div>
    <Chart :cdata="cdata" />
  </div>
</template>

<script>
  import Chart from './chart.vue'
  export default {
    data () {
      return {
        drawTiming: null,
        cdata: {
          year: null,
          weekCategory: [],
          radarData: [],
          radarDataAvg: [],
          maxData: 12000,
          weekMaxData: [],
          weekLineData: []
        }
      }
    },
    components: {
      Chart,
    },
    mounted () {
      this.drawTimingFn();
    },
    beforeDestroy () {
      clearInterval(this.drawTiming);
    },
    methods: {
      drawTimingFn () {
        this.setData();
        this.drawTiming = setInterval(() => {
          this.setData();
        }, 6000);
      },
      setData () {

      }
    }
  };
</script>

<style lang="scss" scoped>
</style>
